CRPEJob::ExportPrintWindow
Use CRPEJob::ExportPrintWindow to export the report displayed in the preview window to a disk file or e-mail address. If you are customizing preview window controls, use this method to enable the user to preview the report in the preview window, and if everything looks satisfactory, to export the report to a disk file or e-mail address (in response to a user event, such as a button click, menu command, etc.).
Syntax
BOOL ExportPrintWindow ( BOOL toMail );
Parameter
toMail
| Specifies whether the report file should be exported to an e-mail address. If TRUE, the file is exported to e-mail. If FALSE, the file is exported to a disk file.
|
Returns
- TRUE if the call is successful.
- FALSE if the call fails.